import React from "react"
import RouteList from './route'
import { BrowserRouter as Router } from 'react-router-dom'
import { stores } from './stores'
import { Provider } from 'mobx-react'
import zhCN from 'antd/es/locale/zh_CN'
import { ConfigProvider } from 'antd'
import 'nprogress/nprogress.css';
import { AliveScope } from "./components/keepAlive"
import Home from "./pages/home"

const App = () => {

    return (
        <AliveScope>
            <ConfigProvider locale={zhCN}>
                <Provider {...stores}>
                    <Home />
                    <Router>
                        <RouteList />
                    </Router>
                </Provider>
            </ConfigProvider>
        </AliveScope>

  )
}

export default App
